home *** CD-ROM | disk | FTP | other *** search
/ The AGA Experience 3 / AGA Experience Volume 3 (1997)(NFA - SAdENESS)[!].iso / software / utilities / graphics / raylab / source / platform / amiga / makefile < prev    next >
Encoding:
Makefile  |  1996-09-16  |  1.8 KB  |  78 lines

  1. #
  2. # Makefile for RayLab v1.1
  3. # ------------------------
  4. #
  5. # This file is part of the RayLab 1.1 distribution, and it is released
  6. # to the public domain.
  7. #
  8. # This makefile was made for gcc for Amiga.
  9. #
  10. # How to compile (for an Amiga with 020+881 or better):
  11. #
  12. #   Type 'make' or 'make raylab' from shell.
  13. #
  14. # To compile for an Amiga without an FPU, just change the -m68xxx flags
  15. # and replace 'algebra_881...' in the OBJS declaration with 'algebra...'
  16. #
  17.  
  18.  
  19. CFLAGS    = -m68020 -m68881 -O3 -c -finline-functions -ffast-math \
  20.             -fno-unroll-loops -fno-unroll-all-loops -fomit-frame-pointer \
  21.             -freg-struct-return
  22. AFLAGS    = -m68020 -m68881 -c
  23. LFLAGS    = -noixemul -s -o raylab -O
  24. CC        = gcc
  25. ASM       = gcc
  26. OBJ       = o
  27.  
  28. .c.o:
  29.     $(CC) $(CFLAGS) $*.c
  30.  
  31. .s.o:
  32.     $(ASM) $(AFLAGS) $*.s
  33.  
  34. OBJS   = raylab.$(OBJ) trace.$(OBJ) camera.$(OBJ) intersct.$(OBJ) \
  35.          algebra_881.$(OBJ) getworld.$(OBJ) pic.$(OBJ) iff.$(OBJ) \
  36.          tga.$(OBJ) ppm.$(OBJ) texture.$(OBJ) objects.$(OBJ) \
  37.          preproc.$(OBJ) getinput.$(OBJ) platform.$(OBJ) display.$(OBJ)
  38.  
  39.  
  40. raylab: $(OBJS)
  41.     $(CC) $(LFLAGS) $(OBJS) -lm
  42.  
  43.  
  44. raylab.$(OBJ): raylab.c defs.h typedef.h
  45.  
  46. trace.$(OBJ): trace.c defs.h typedef.h
  47.  
  48. camera.$(OBJ): camera.c defs.h typedef.h
  49.  
  50. intersct.$(OBJ): intersct.c defs.h typedef.h
  51.  
  52. algebra.$(OBJ): algebra.c defs.h typedef.h
  53.  
  54. algebra_881.$(OBJ): algebra_881.s
  55.  
  56. getworld.$(OBJ): getworld.c defs.h typedef.h
  57.  
  58. pic.$(OBJ): pic.c defs.h typedef.h
  59.  
  60. iff.$(OBJ): iff.c defs.h typedef.h
  61.  
  62. tga.$(OBJ): tga.c defs.h typedef.h
  63.  
  64. ppm.$(OBJ): ppm.c defs.h typedef.h
  65.  
  66. texture.$(OBJ): texture.c defs.h typedef.h
  67.  
  68. objects.$(OBJ): objects.c defs.h typedef.h
  69.  
  70. preproc.$(OBJ): preproc.c defs.h typedef.h
  71.  
  72. getinput.$(OBJ): getinput.c defs.h typedef.h
  73.  
  74. platform.$(OBJ): platform.c defs.h typedef.h
  75.  
  76. display.$(OBJ): display.c defs.h typedef.h
  77.  
  78.